package com.ztf666.service;

import java.io.IOException;

/**
 * @Author ztf
 * @Date 21:04 2022/1/17
 **/
public interface DocService {
    void addDoc(String index, String source) throws IOException;
    void addDocWithId(String index, String id, String source) throws IOException;
    void updateDoc(String index,String id, String source) throws Exception;
    void deleteDoc(String index,String id) throws Exception;
}
